define(function(require,exports,module){
    var Subnav = require("subnav");

    module.exports = {
        initComponent: function(widget){
            var subnav = new Subnav({
                parentNode: ".J-subnav",
                model: {
                	
                	/*define(function(require,exports,module){
                	    var Grid = require("grid");

                	    module.exports = {
                	        initComponent: function(widget){
                	            var grid = new Grid({
                	                parentNode: ".J-subGrid",
                	                model: {*/
   
                    title: "产品创建",
                    items: [{
                        id: "search",
                        type: "search",
                        placeholder: "产品名称",
                        handler: function(){
                        	widget.handler.subnav.handlerSearch(widget);
                        }
                    },{
                        id: "add",
                        type: "button",
                        text: "新增",
                        handler: function(){
                            widget.get("form").reset();
                            widget.get("subGrid").setData([]);
                            widget.toCard();
                        }
                    },{
                        id: "return",
                        type: "button",
                        text: "返回",
                        show: false,
                        handler: function(){
                            widget.toList();
                        }
                    },{
                    	id: "save",
                    	type: "button",
                    	text: "保存",
                    	show: false,
                    	handler: function(){
                    		widget.handler.subnav.handleSaveBtnClick(widget);
                    	}
                    }]
                }
            });

            widget.set("subnav",subnav)
        }
    };
});